<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

</body>
</html>
<script>
    async function one() {
        await new Promise(function (resolve, reject) {
            setTimeout(() => {
                console.log('起锅烧油')
                resolve()
            }, 5000)
        }).then(res => {
            console.log('油七分熟')
        })
    }

    async function two() {
        console.log('放入葱姜蒜')
    }

    async function three() {
        if (1 === 1) {
            await one()
            await two()
        }
    }

    three()
</script>
